<?php echo form_button(array('id'=>'add-hairstyleoption', 'onClick'=>'openHairstyleoptionsPopup()','name'=>'add', 'class'=>'btn blue', 'value'=>lang('escort_hairstyleoption_add_hairstyleoption'), 'content'=>lang('escort_hairstyleoption_add_hairstyleoption')))?>
<section class="item">
<?php
	if($hairstyleoptionList){
?>
		<table class="table-list">
			<tr>
				<th><?php echo lang('escort_hairstyleoption_id')?></th>
				<th><span><?php echo lang('escort_hairstyleoption_name')?></span></th>
				<th class="actions"><?php echo lang('escort_hairstyleoption_actions')?></th>
			</tr>
			
	<?php
		foreach ($hairstyleoptionList as $hairstyleoption){ 
	?>
			<tr>
				<td>
					<?php echo $hairstyleoption->id ?>
				</td>
				<td class="collapse">
					<?php echo $hairstyleoption->hair_color ?>
				</td>
				<td class="actions">
				<a class="button edit" onclick="return editHairstyleoption('<?php echo $hairstyleoption->code ?>')" href="#"><?php echo lang('escort_hairstyleoption_edit_hairstyleoption')?></a>
				<a class="button delete" onclick="return deleteHairstyleoption('<?php echo $hairstyleoption->code ?>', '<?php echo lang('escort_hairstyleoption_delete_confirm')?>')" href="#"><?php echo lang('escort_hairstyleoption_delete_hairstyleoption')?></a>
				</td>
			</tr>
	<?php
		}
	?>
		</table>
<?php
	}else{ 
?>
	<p>
		<?php echo lang('escort_hairstyleoption_no_hairstyleoption')?>
	</p>
<?php
	} 
?>
</section>
<div id="basic-modal-content-hairstyleoption">
	<div class="popup-body hairstyleoption-popup">
		<section class="title">
			<h4><?php echo lang('escort_hairstyleoption_add_hairstyleoption')?></h4>
		</section>
		<form id="add-hairstyleoption-form" action="">
			<input type="hidden" name="hairstyleoption-edit" id="hairstyleoption-edit" value="" />
			<section class="item">
		<?php
		if($languageList){ 
		?>
				<input type="hidden" name="hairstyleoption_code" id="hairstyleoption-code" value="" />
				<div class="tabs">
					<ul class="tab-menu">
					<?php
						foreach ($languageList as $language) {
					?>
						<li><a href="#language-<?php echo $language->id?>-tab"><span><?php echo $language->language?></span></a></li>
					<?php
						} 
					?>
					</ul>
					<?php
						foreach ($languageList as $language) {
					?>
						<div class="form_inputs" id="language-<?php echo $language->id?>-tab">
							<fieldset>
								<ul>
									<li class="even">
										<label for="first_name"><?php echo lang('escort_hairstyleoption_name')?><span>*</span></label>
										<div class="input">
											<input type="hidden" value="" name="hairstyleoption_id[<?php echo $language->id?>]" id="hairstyleoption_id"/>
											<input class="required" type="text" id="hairstyleoption" value="" name="hairstyleoption[<?php echo $language->id?>]">
										</div>
									</li>
								</ul>
							</fieldset>
						</div>
					<?php
						} 
					?>
					
				</div>
				<div>
					<?php echo form_button(array('id'=>'save-hairstyleoption', 'onClick'=>'saveHairstyleoption()','name'=>'add', 'class'=>'btn blue', 'value'=>lang('escort_hairstyleoption_save'), 'content'=>lang('escort_hairstyleoption_save')))?>
					<?php echo form_button(array('id'=>'cancel-hairstyleoption', 'name'=>'add', 'class'=>'btn blue modalCloseImg simplemodal-close', 'value'=>lang('escort_hairstyleoption_cancel'), 'content'=>lang('escort_hairstyleoption_cancel')))?>
				</div>
		<?php
		} 
		?>
			</section>
		</form>
	</div>
</div>
